package com.sh.data.engine.domain.integration.datasource.model.mapper;

import com.sh.data.engine.domain.integration.datasource.model.domain.DataSourceDetailDomain;
import com.sh.data.engine.domain.integration.datasource.model.domain.DataSourceDomain;
import com.sh.data.engine.repository.dao.integration.datasource.entity.DataSourceEntity;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author: mengzheng.mhc
 * @date: 2024/6/12 17:31
 */
@Mapper(componentModel = "spring")
public interface DataSourceDomainMapper {

    List<DataSourceDomain> map(List<DataSourceEntity> dataSourceEntities);

    DataSourceDetailDomain map(DataSourceEntity dataSourceEntity);
}
